package cn.daixi.web.sys.dto;

import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class RegisterReq {
    @ApiModelProperty("用户名")
    @Size(min = 2, max = 20,message = "用户名长度必须大于等于2小于等于20")
    private String userName;

    @Size(min = 6,message = "密码长度不能小于6")
    @ApiModelProperty("密码")
    private String password;
}
